package org.jeecg.modules.activiti.util;/**
 * @Description: Created with IntelliJ IDEA.
 * @Author: huangjinbo
 * @Date: 2021/06/28/8:55
 */

import java.util.Random;

/**
 * @Description: TODO
 * @author: huangjinbo
 * @date: 2021年06月28日 8:55
 */

public class RandomNumberUtil {
    private RandomNumberUtil() {
    }
    public static String createRandomNumber(int length) {
        StringBuilder strBuffer = new StringBuilder();
        Random rd = new Random();
        for (int i = 0; i < length; i++) {
            strBuffer.append(rd.nextInt(10));
        }
        return strBuffer.toString();
    }
}

